package com.wx.tgp.designpattern.StrategyPattern.Shoppingmall;

/**
 * 策略具体类，打折算法类
 */
public class DiscountPay  implements Paymate{

    private double price;

    public DiscountPay(double price){
        this.price = price;
    }

    public double shoppingPay() {
        // 商场购物打8折
        return price*0.8;
    }
}
